package com.sen.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sen.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 职位表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    List<RoleEntity> getRoleByid(String id);

    void addRole(@Param("role") RoleEntity role);

    RoleEntity getRoleByUsername(String username);
}
